<template>
    <div>
        <div>news</div>
        <div>{{newsId}}</div>
        <div>{{search}}</div>
    </div>
</template>

<script>
    export default {
        name: "News",
        data() {
            return {
                newsId: "",
                search: "默认信息"
            }
        },
        methods: {},
        mounted() {
            this.newsId = this.$route.params.newsId
            if (this.$route.query.search) {
                this.search = this.$route.query.search
            }
        }

    }
</script>

<style scoped>

</style>
